<?xml version="1.0" encoding="utf-8" ?>
<xs:schema id="News" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xe="http://www.CrossFactory.net/XmlEditor">
	<xs:complexType name="gallerycontent">
		<xs:sequence minOccurs="0" maxOccurs="unbounded">
			<xs:element name="title" type="text" maxOccurs="1" minOccurs="0" xe:defaultOccurs="0" />
			<xs:element name="width" type="text" maxOccurs="1" minOccurs="0" xe:property="true" xe:defaultOccurs="1" />
			<xs:element name="height" type="text" minOccurs="0" maxOccurs="1" xe:property="true" xe:defaultOccurs="1" />
			<xs:element name="maxImageWidth" type="text" maxOccurs="1" minOccurs="0" xe:defaultOccurs="0" xe:property="true" />
      <xs:element name="maxImageHeight" type="text" maxOccurs="1" minOccurs="0" xe:defaultOccurs="0" xe:property="true" />
			<xs:element name="navPosition" type="navPositionType" maxOccurs="1" minOccurs="0" xe:defaultOccurs="0" xe:property="true" />
			<xs:element name="textColor" type="text" maxOccurs="1" minOccurs="0" xe:defaultOccurs="0" xe:property="true" />
			<xs:element name="frameColor" type="text" maxOccurs="1" minOccurs="0" xe:defaultOccurs="0" xe:property="true" />
			<xs:element name="frameWidth" type="text" maxOccurs="1" minOccurs="0" xe:defaultOccurs="0" xe:property="true" />
			<xs:element name="stagePadding" type="text" maxOccurs="1" minOccurs="0" xe:defaultOccurs="0" />
			<xs:element name="thumbnailRows" type="text" maxOccurs="1" minOccurs="0" xe:defaultOccurs="0" xe:property="true" />
			<xs:element name="thumbnailColumns" type="text" maxOccurs="1" minOccurs="0" xe:defaultOccurs="0" xe:property="true" />
			<!--<xs:element name="background" type="yesno" maxOccurs="1" minOccurs="0" default="yes" xe:defaultOccurs="0" xe:property="true" />-->
			<xs:element name="bgColor" type="text" maxOccurs="1" minOccurs="0" xe:defaultOccurs="0" xe:property="true" />
			<xs:element name="picturegallery" type="picturegallery" maxOccurs="unbounded" minOccurs="0" xe:defaultOccurs="0" xe:openPropertiesOnCreation="true"  />
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="picturegallery" mixed="false">
		<xs:sequence>
			<xs:element name="uri" type="text" maxOccurs="1" minOccurs="1" xe:property="true" xe:hyperlinkType="localImage" />
			<xs:element name="tooltip" type="text" maxOccurs="1" minOccurs="0" xe:defaultOccurs="1" />
		</xs:sequence>
	</xs:complexType>
	<xs:simpleType name="text">
		<xs:restriction base="xs:string" />
	</xs:simpleType>
	<xs:simpleType name="yesno">
		<xs:restriction base="xs:string">
			<xs:enumeration value="yes" />
			<xs:enumeration value="no" />
		</xs:restriction>
	</xs:simpleType>	
	<xs:simpleType name="navPositionType">
		<xs:restriction base="xs:string">
			<xs:enumeration value="left" />
			<xs:enumeration value="right" />
			<xs:enumeration value="top" />
			<xs:enumeration value="bottom" />
		</xs:restriction>
	</xs:simpleType>
	<xs:element name="gallerycontent" type="gallerycontent"></xs:element>
</xs:schema>